﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using V5_BLL;
using V5_Common;

namespace V5_EShop._Template.Default.Member
{
    public partial class Integral : BasicPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.check_member_login())
            {
                Response.Redirect("/login.aspx?returnurl=" + HTTPS.GetCurrentUrl());
            }
            if (!this.IsPostBack)
            {
                Bind_rpList();
            }
        }


        private void Bind_rpList()
        {
            //这里添加订单的状态积分
            string strWhere = "";
            strWhere += " MemberID="+user.ID;
            //还需要修改一下
            this.rplist.DataSource = new BLLProductOrder().GetList(10, strWhere, " OrderID Desc ");
            this.rplist.DataBind();
        }
    }
}
